<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Generates a random deviate from the beta distribution</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.stats-rand-gen-beta" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stats_rand_gen_beta</h1>
  <p class="verinfo">(PECL stats &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">stats_rand_gen_beta</span> &mdash; <span class="dc-title">Generates a random deviate from the beta distribution</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.stats-rand-gen-beta-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stats_rand_gen_beta</strong></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$a</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$b</code></span>
   ) : <span class="type">float</span></div>

  <p class="para rdfs-comment">
   Returns a random deviate from the beta distribution with parameters A and
   B. The density of the beta is x^(a-1) * (1-x)^(b-1) / B(a,b) for 0 &lt; x
   &lt;. Method R. C. H. Cheng.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stats-rand-gen-beta-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">a</code></dt>

     <dd>

      <p class="para">
       The shape parameter of the beta distribution
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">b</code></dt>

     <dd>

      <p class="para">
       The shape parameter of the beta distribution
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stats-rand-gen-beta-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   A random deviate
  </p>
 </div>


 


 


 


 


</div></div></div></body></html>